﻿<UserControl x:Class="TVManager.MoviesFanartControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:app="clr-namespace:TVManager"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="200" />
                <ColumnDefinition Width="3" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Button x:Name="downloadButton" Content="Download Images" Margin="3" Width="120" HorizontalAlignment="Left" />

            <ListBox Grid.Row="1" x:Name="movieListBox" Margin="3" DisplayMemberPath="OriginalTitle" />
            <GridSplitter Grid.Row="1" Grid.Column="1" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  />

            <Grid Grid.Column="2" Grid.Row="1" x:Name="movieGrid" Visibility="Collapsed">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="2*" />
                </Grid.ColumnDefinitions>
                <Grid Grid.Column="0" Margin="10">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>

                    <TextBlock Text="Movie Poster" HorizontalAlignment="Center" FontWeight="Bold"  />
                    <Image x:Name="posterImage" Grid.Row="1" />


                    <StackPanel Grid.Row="2" Orientation="Horizontal">
                        <Button x:Name="downloadPosterButton" Content="Download Image" Margin="3" HorizontalAlignment="Left" />
                        <Button x:Name="selectPosterButton" Content="Browse for Image" Margin="3" HorizontalAlignment="Right" />
                    </StackPanel>
                </Grid>

                <Grid Grid.Column="1" Margin="10">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>

                    <TextBlock Text="Movie Background" HorizontalAlignment="Center" FontWeight="Bold"  />
                    <Image x:Name="backgroundImage" Grid.Row="1" />


                    <StackPanel Grid.Row="2" Orientation="Horizontal">
                        <Button x:Name="downloadBackgroundButton" Content="Download Image" Margin="3" HorizontalAlignment="Left" />
                        <Button x:Name="selectBackgroundButton" Content="Browse for Image" Margin="3" HorizontalAlignment="Right" />
                    </StackPanel>
                </Grid>
            </Grid>
        </Grid>
        <app:StatusControl x:Name="statusControl" />
    </Grid>
</UserControl>
